<?php
require_once("../../../controllers/init.php");
//echo "Filesystem root = ".$FILE_SYSTEM_ROOT."\n<br>";
require_once($FILE_SYSTEM_ROOT."/controllers/authentication.php");
//echo "logged on - ".(($IS_LOGGED_ON)?"true\n":"false\n");

echo "This is it";

$events = new EventsResultSet();
$results = $events->getEvents();
foreach ($results as $event) 
{
	echo "<EventID>".$event->getEventID()."</EventID>\n";
	echo "<OriginalRecordID".$event->getOriginalRecordID()."</OriginalRecordID>\n";
	echo "<CreatedWhen>".$event->getCreatedWhen()."</CreatedWhen>\n";
	echo "<CreatedBy>".$event->getCreatedBy()."</CreatedBy>\n";
	echo "<DeletedWhen>".$event->getDeletedWhen()."</DeletedWhen>\n";
	echo "<DeletedBy>".$event->getDeletedBy()."</DeletedBy>\n";
	echo "<Start>".$event->getStart()."</Start>\n";
	echo "<End>".$event->getEnd()."</End>\n";
	echo "<Title>".$event->getTitle()."</Title>\n";
	echo "<Description>".$event->getDescription()."</Description>\n";
}

?>